package com.apexedu.portal.entity;

import com.apexedu.util.StringUtil;

import javax.persistence.*;

/**
 * 找回密码问题
 * Created by ly on 2015/5/15.
 */
@Entity
@Table(name = "T_PWD_Q")
public class TPwdQ {
    private String wid;
    private String type; //类型 1为教师 2为学生 3为校领导 0为全部
    private String title; //问题标题
    private String state; //状态 1为启用 0为禁用
    private Integer orderno; //排序值

    /**
     * 是否回答过，有用户回答后此问题不能修改 删除
     */
    private boolean answer;

    @Id
    @Column(name = "WID")
    public String getWid() {
        return wid;
    }

    public void setWid(String wid) {
        this.wid = wid;
    }

    @Basic
    @Column(name = "TYPE")
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Basic
    @Column(name = "TITLE")
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Basic
    @Column(name = "STATE")
    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Basic
    @Column(name = "ORDERNO")
    public Integer getOrderno() {
        return orderno;
    }

    public void setOrderno(Integer orderno) {
        this.orderno = orderno;
    }

    @Transient
    public boolean isAnswer() {
        return answer;
    }

    public void setAnswer(boolean answer) {
        this.answer = answer;
    }
}
